package com.ourteam.education.dao;
/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2019-09-22 15:15:05
  * Warning ! This file will be overwrite when regenerate !
  * 
 */
import org.apache.commons.lang.StringUtils;
public class Campus implements java.io.Serializable {
    
    public Campus() {
		super();
	}
	
		
		
		
		
		
	private long id;	
	
	/**
	 * Attribute id Be Seted Falg
	 */
	private boolean idSetted = false;
	
		/**
	 * Attribute id is Null Falg
	 */
	private boolean idNull = false;
	
	   
    /**
	 * Get id
	 * 
	 * @return long
	 */
	final public long getId(){
	    
				
		return id;
				
	}
	
	/**
	 * Set id
	 * 
	 * @param long
	 */
	final public void setId(long id ){
		
				
		this.id = id;
				
		this.idSetted = true;
		
				
				
		this.setIdNull(false);
				
				
	}
	
	/**
	 * Get id Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isIdSetted(){
		return this.idSetted;
	}
	
		
	/**
	 * Set id Null
	 * 
	 */
	final public void setIdNull(){
			
		this.idNull = true;
		
	}	
	
	final public void setIdNull(boolean aNullFlag){
			
		this.idNull = aNullFlag;
		
	}	
	
	final public boolean isIdNull(){
			
		return this.idNull;
		
	}
	
    	
	   
		
		
		
	private String campusName;	
	
	/**
	 * Attribute campusName Be Seted Falg
	 */
	private boolean campusNameSetted = false;
	
		/**
	 * Attribute campusName is Null Falg
	 */
	private boolean campusNameNull = false;
	
	   
    /**
	 * Get campusName
	 * 
	 * @return String
	 */
	final public String getCampusName(){
	    
				
		if(isCampusNameNull()){
			return null;
		}
		else{
			return StringUtils.trim(campusName);
		}
				
	}
	
	/**
	 * Set campusName
	 * 
	 * @param String
	 */
	final public void setCampusName(String campusName ){
		
				
		this.campusName = StringUtils.trim(campusName);
				
		this.campusNameSetted = true;
		
				
				
		this.setCampusNameNull(this.campusName == null);
				
				
	}
	
	/**
	 * Get campusName Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isCampusNameSetted(){
		return this.campusNameSetted;
	}
	
		
	/**
	 * Set campusName Null
	 * 
	 */
	final public void setCampusNameNull(){
			
		this.campusNameNull = true;
		
	}	
	
	final public void setCampusNameNull(boolean aNullFlag){
			
		this.campusNameNull = aNullFlag;
		
	}	
	
	final public boolean isCampusNameNull(){
			
		return this.campusNameNull;
		
	}
	
    	
	   
		
		
		
	private String campusTel1;	
	
	/**
	 * Attribute campusTel1 Be Seted Falg
	 */
	private boolean campusTel1Setted = false;
	
		/**
	 * Attribute campusTel1 is Null Falg
	 */
	private boolean campusTel1Null = false;
	
	   
    /**
	 * Get campusTel1
	 * 
	 * @return String
	 */
	final public String getCampusTel1(){
	    
				
		if(isCampusTel1Null()){
			return null;
		}
		else{
			return StringUtils.trim(campusTel1);
		}
				
	}
	
	/**
	 * Set campusTel1
	 * 
	 * @param String
	 */
	final public void setCampusTel1(String campusTel1 ){
		
				
		this.campusTel1 = StringUtils.trim(campusTel1);
				
		this.campusTel1Setted = true;
		
				
				
		this.setCampusTel1Null(this.campusTel1 == null);
				
				
	}
	
	/**
	 * Get campusTel1 Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isCampusTel1Setted(){
		return this.campusTel1Setted;
	}
	
		
	/**
	 * Set campusTel1 Null
	 * 
	 */
	final public void setCampusTel1Null(){
			
		this.campusTel1Null = true;
		
	}	
	
	final public void setCampusTel1Null(boolean aNullFlag){
			
		this.campusTel1Null = aNullFlag;
		
	}	
	
	final public boolean isCampusTel1Null(){
			
		return this.campusTel1Null;
		
	}
	
    	
	   
		
		
		
	private String campusTel2;	
	
	/**
	 * Attribute campusTel2 Be Seted Falg
	 */
	private boolean campusTel2Setted = false;
	
		/**
	 * Attribute campusTel2 is Null Falg
	 */
	private boolean campusTel2Null = false;
	
	   
    /**
	 * Get campusTel2
	 * 
	 * @return String
	 */
	final public String getCampusTel2(){
	    
				
		if(isCampusTel2Null()){
			return null;
		}
		else{
			return StringUtils.trim(campusTel2);
		}
				
	}
	
	/**
	 * Set campusTel2
	 * 
	 * @param String
	 */
	final public void setCampusTel2(String campusTel2 ){
		
				
		this.campusTel2 = StringUtils.trim(campusTel2);
				
		this.campusTel2Setted = true;
		
				
				
		this.setCampusTel2Null(this.campusTel2 == null);
				
				
	}
	
	/**
	 * Get campusTel2 Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isCampusTel2Setted(){
		return this.campusTel2Setted;
	}
	
		
	/**
	 * Set campusTel2 Null
	 * 
	 */
	final public void setCampusTel2Null(){
			
		this.campusTel2Null = true;
		
	}	
	
	final public void setCampusTel2Null(boolean aNullFlag){
			
		this.campusTel2Null = aNullFlag;
		
	}	
	
	final public boolean isCampusTel2Null(){
			
		return this.campusTel2Null;
		
	}
	
    	
	   
		
		
		
	private String campusAddress;	
	
	/**
	 * Attribute campusAddress Be Seted Falg
	 */
	private boolean campusAddressSetted = false;
	
		/**
	 * Attribute campusAddress is Null Falg
	 */
	private boolean campusAddressNull = false;
	
	   
    /**
	 * Get campusAddress
	 * 
	 * @return String
	 */
	final public String getCampusAddress(){
	    
				
		if(isCampusAddressNull()){
			return null;
		}
		else{
			return StringUtils.trim(campusAddress);
		}
				
	}
	
	/**
	 * Set campusAddress
	 * 
	 * @param String
	 */
	final public void setCampusAddress(String campusAddress ){
		
				
		this.campusAddress = StringUtils.trim(campusAddress);
				
		this.campusAddressSetted = true;
		
				
				
		this.setCampusAddressNull(this.campusAddress == null);
				
				
	}
	
	/**
	 * Get campusAddress Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isCampusAddressSetted(){
		return this.campusAddressSetted;
	}
	
		
	/**
	 * Set campusAddress Null
	 * 
	 */
	final public void setCampusAddressNull(){
			
		this.campusAddressNull = true;
		
	}	
	
	final public void setCampusAddressNull(boolean aNullFlag){
			
		this.campusAddressNull = aNullFlag;
		
	}	
	
	final public boolean isCampusAddressNull(){
			
		return this.campusAddressNull;
		
	}
	
    	
	   
		
		
		
	private String campusType;	
	
	/**
	 * Attribute campusType Be Seted Falg
	 */
	private boolean campusTypeSetted = false;
	
		/**
	 * Attribute campusType is Null Falg
	 */
	private boolean campusTypeNull = false;
	
	   
    /**
	 * Get campusType
	 * 
	 * @return String
	 */
	final public String getCampusType(){
	    
				
		if(isCampusTypeNull()){
			return null;
		}
		else{
			return StringUtils.trim(campusType);
		}
				
	}
	
	/**
	 * Set campusType
	 * 
	 * @param String
	 */
	final public void setCampusType(String campusType ){
		
				
		this.campusType = StringUtils.trim(campusType);
				
		this.campusTypeSetted = true;
		
				
				
		this.setCampusTypeNull(this.campusType == null);
				
				
	}
	
	/**
	 * Get campusType Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isCampusTypeSetted(){
		return this.campusTypeSetted;
	}
	
		
	/**
	 * Set campusType Null
	 * 
	 */
	final public void setCampusTypeNull(){
			
		this.campusTypeNull = true;
		
	}	
	
	final public void setCampusTypeNull(boolean aNullFlag){
			
		this.campusTypeNull = aNullFlag;
		
	}	
	
	final public boolean isCampusTypeNull(){
			
		return this.campusTypeNull;
		
	}
	
    	
	   
		
		
		
	private long sortIndex;	
	
	/**
	 * Attribute sortIndex Be Seted Falg
	 */
	private boolean sortIndexSetted = false;
	
		/**
	 * Attribute sortIndex is Null Falg
	 */
	private boolean sortIndexNull = false;
	
	   
    /**
	 * Get sortIndex
	 * 
	 * @return long
	 */
	final public long getSortIndex(){
	    
				
		return sortIndex;
				
	}
	
	/**
	 * Set sortIndex
	 * 
	 * @param long
	 */
	final public void setSortIndex(long sortIndex ){
		
				
		this.sortIndex = sortIndex;
				
		this.sortIndexSetted = true;
		
				
				
		this.setSortIndexNull(false);
				
				
	}
	
	/**
	 * Get sortIndex Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isSortIndexSetted(){
		return this.sortIndexSetted;
	}
	
		
	/**
	 * Set sortIndex Null
	 * 
	 */
	final public void setSortIndexNull(){
			
		this.sortIndexNull = true;
		
	}	
	
	final public void setSortIndexNull(boolean aNullFlag){
			
		this.sortIndexNull = aNullFlag;
		
	}	
	
	final public boolean isSortIndexNull(){
			
		return this.sortIndexNull;
		
	}
	
    	
	   
		
		
		
	private String status;	
	
	/**
	 * Attribute status Be Seted Falg
	 */
	private boolean statusSetted = false;
	
		/**
	 * Attribute status is Null Falg
	 */
	private boolean statusNull = false;
	
	   
    /**
	 * Get status
	 * 
	 * @return String
	 */
	final public String getStatus(){
	    
				
		if(isStatusNull()){
			return null;
		}
		else{
			return StringUtils.trim(status);
		}
				
	}
	
	/**
	 * Set status
	 * 
	 * @param String
	 */
	final public void setStatus(String status ){
		
				
		this.status = StringUtils.trim(status);
				
		this.statusSetted = true;
		
				
				
		this.setStatusNull(this.status == null);
				
				
	}
	
	/**
	 * Get status Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isStatusSetted(){
		return this.statusSetted;
	}
	
		
	/**
	 * Set status Null
	 * 
	 */
	final public void setStatusNull(){
			
		this.statusNull = true;
		
	}	
	
	final public void setStatusNull(boolean aNullFlag){
			
		this.statusNull = aNullFlag;
		
	}	
	
	final public boolean isStatusNull(){
			
		return this.statusNull;
		
	}
	
    	
	   
		
		
		
	private String remarks;	
	
	/**
	 * Attribute remarks Be Seted Falg
	 */
	private boolean remarksSetted = false;
	
		/**
	 * Attribute remarks is Null Falg
	 */
	private boolean remarksNull = false;
	
	   
    /**
	 * Get remarks
	 * 
	 * @return String
	 */
	final public String getRemarks(){
	    
				
		if(isRemarksNull()){
			return null;
		}
		else{
			return StringUtils.trim(remarks);
		}
				
	}
	
	/**
	 * Set remarks
	 * 
	 * @param String
	 */
	final public void setRemarks(String remarks ){
		
				
		this.remarks = StringUtils.trim(remarks);
				
		this.remarksSetted = true;
		
				
				
		this.setRemarksNull(this.remarks == null);
				
				
	}
	
	/**
	 * Get remarks Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isRemarksSetted(){
		return this.remarksSetted;
	}
	
		
	/**
	 * Set remarks Null
	 * 
	 */
	final public void setRemarksNull(){
			
		this.remarksNull = true;
		
	}	
	
	final public void setRemarksNull(boolean aNullFlag){
			
		this.remarksNull = aNullFlag;
		
	}	
	
	final public boolean isRemarksNull(){
			
		return this.remarksNull;
		
	}
	
    	
	   
		
		
		
	private int deleteFlag;	
	
	/**
	 * Attribute deleteFlag Be Seted Falg
	 */
	private boolean deleteFlagSetted = false;
	
		/**
	 * Attribute deleteFlag is Null Falg
	 */
	private boolean deleteFlagNull = false;
	
	   
    /**
	 * Get deleteFlag
	 * 
	 * @return int
	 */
	final public int getDeleteFlag(){
	    
				
		return deleteFlag;
				
	}
	
	/**
	 * Set deleteFlag
	 * 
	 * @param int
	 */
	final public void setDeleteFlag(int deleteFlag ){
		
				
		this.deleteFlag = deleteFlag;
				
		this.deleteFlagSetted = true;
		
				
				
		this.setDeleteFlagNull(false);
				
				
	}
	
	/**
	 * Get deleteFlag Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isDeleteFlagSetted(){
		return this.deleteFlagSetted;
	}
	
		
	/**
	 * Set deleteFlag Null
	 * 
	 */
	final public void setDeleteFlagNull(){
			
		this.deleteFlagNull = true;
		
	}	
	
	final public void setDeleteFlagNull(boolean aNullFlag){
			
		this.deleteFlagNull = aNullFlag;
		
	}	
	
	final public boolean isDeleteFlagNull(){
			
		return this.deleteFlagNull;
		
	}
	
    	
	   
		
		
		
		
	
	
	public int hashCode() {
		final int prime = 31;
		int result = 1;
				
				
		result = prime * result + (int) (getId() ^ (getId() >>> 32));
						
		return result;
	}
	
	public boolean equals(Object obj) {
	
		if (obj == null){
			return false;
		}
		if ((obj instanceof Campus) == false){
			return false;
		}
		Campus other = (Campus) obj;
		
				
				
		if (getId() != other.getId()){
			return false;
		}
						
		return true;
	
	}	
	
	public String toString(){
	    
		StringBuffer buffer = new StringBuffer();
		
		buffer.append("[");
		
		        
		buffer.append("id=");
		buffer.append(this.id);
		        
		buffer.append("campusName=");
		buffer.append(this.campusName);
		        
		buffer.append("campusTel1=");
		buffer.append(this.campusTel1);
		        
		buffer.append("campusTel2=");
		buffer.append(this.campusTel2);
		        
		buffer.append("campusAddress=");
		buffer.append(this.campusAddress);
		        
		buffer.append("campusType=");
		buffer.append(this.campusType);
		        
		buffer.append("sortIndex=");
		buffer.append(this.sortIndex);
		        
		buffer.append("status=");
		buffer.append(this.status);
		        
		buffer.append("remarks=");
		buffer.append(this.remarks);
		        
		buffer.append("deleteFlag=");
		buffer.append(this.deleteFlag);
				
		buffer.append("]");
		
		return buffer.toString();
	}
	
	
}